import { LevelData } from "../Data/LevelData";

export default class LevelInitBase{
    //关卡的根物体
    public levelRoot:Laya.Sprite3D;
    //关卡物体的根物体
    public LevelObjs:Laya.Sprite3D;

    public Scene:Laya.Scene3D;

    public startInit(scene:Laya.Scene3D,levelData:LevelData){
        if(scene == null){
            console.error("scene is null 无法初始化场景");
            return;
        }

        this.Scene = scene;
        this.levelRoot = scene.getChildByName("Level"+levelData.levelNum) as Laya.Sprite3D;
        this.LevelObjs = this.levelRoot.getChildByName("levelObjs") as Laya.Sprite3D;
        this.startInitDetail();
    }

    public startInitDetail(){
        
    }
}